package luz.javaproxy.config;

import java.util.Properties;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

@XStreamAlias("Plugin")
public class PluginConfig{
	@XStreamAsAttribute
	String name;
	@XStreamAsAttribute
	boolean enabled;
	@XStreamAsAttribute
	int priority;
	Properties config;
	
	public PluginConfig(String name, Properties config, boolean enabled, int priority){
		this.name=name;
		this.config=config;
		this.enabled=enabled;
		this.priority=priority;
	}
	
	public boolean isEnabled(){
		return enabled;
	}
	
	public String getPluginName(){
		return name;
	}
	
	public int getPluginPriority(){
		return priority;
	}
	
	public Properties getPluginConfig(){
		return config;
	}
}